const axios = require("axios");
// 3.axios
axios.defaults.baseURL = "http://fitness.h5.itsource.cn:3701";
let token = localStorage.getItem("token");
if (token) {
    axios.defaults.headers.common["Authorization"] = 'Bearer ' + token;
}

module.exports = axios;